//
//  EGMFormula.h
//  BlePedometer
//
//  Created by hh on 14-2-7.
//  Copyright (c) 2014年 egoman. All rights reserved.
//

#import "SDKParamEnum.h"

#define SDK_KM_TO_MILE 0.62137
#define SDK_M_TO_YARD (1 / 0.9144)
#define SDK_CM_TO_INCH (1 / 2.54)
#define SDK_M_TO_INCH (CM_TO_INCH * 100)
#define SDK_KG_TO_POUND 2.20462
#define SDK_FOOT_TO_INCH 12

@interface SDKFormula : NSObject
/**
 * 根据身高、性别计算步距
 * @param gender
 * @param height cm
 * @return cm
 */
+(NSInteger)getStride:(NSInteger)height gender:(SDKGender)gender;
/**
 * 计算距离
 * @param step
 * @return m or yard
 */
+(NSInteger)MetreOrYardByStep:(NSInteger)step height:(NSInteger)height gender:(SDKGender)gender unit:(SDKUnit)unit;
/**
 * 计算卡路里
 * @param step
 * @param weight kg
 * @param height cm
 * @return kcal
 */
+(float)kcalByStep:(NSInteger)step height:(NSInteger)cmHeight weight:(NSInteger)kgWeight;
@end
